package com.jmlee.pojo;

import java.util.Date;
import java.util.List;

/**
 * 菜单实体类
 */
public class Menu {
/*
    菜单ID
 */
    private Long id;
/*
    父菜单ID
 */
    private Long parentId;
/*
    创建日期
 */
    private Date createTime;
/*
    菜单名称
 */
    private String title;
/*
    菜单对应的路径
 */
    private String url;
/*
    前端图标（url）
 */
    private String icon;
/*
    子菜单列表
 */
    private List<Menu> children;
    /*
        菜单状态
     */
    private Integer status;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 菜单 无参构造
     */
    public Menu() {
    }

    /**
     * 菜单 全参构造
     * @param id id
     * @param parentId 父菜单id
     * @param createTime 创建日期
     * @param title 菜单名称
     * @param url  菜单对应路径
     * @param icon  前端图标（url）
     * @param children 子菜单列表
     */
    public Menu(Long id, Long parentId, Date createTime, String title, String url, String icon, List<Menu> children) {
        this.id = id;
        this.parentId = parentId;
        this.createTime = createTime;
        this.title = title;
        this.url = url;
        this.icon = icon;
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }
}
